package com.central.gateway.feign;

import com.central.common.constant.ServiceNameConstants;
import com.central.gateway.feign.fallback.SysUserAccountServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 */
@FeignClient(name = ServiceNameConstants.USER_SERVICE, fallbackFactory = SysUserAccountServiceFallbackFactory.class, decode404 = true)
public interface SysUserAccountService {

    /**
     * 角色菜单列表
     * @param username
     */
    @GetMapping(value = "/accounts/super/{username}")
    boolean isSupperAdminUser(@PathVariable("username") String username);
}
